package cn.felord.core.mongo.dao;

import cn.felord.core.mongo.bean.FileEntity;

import java.util.Collection;

/**
 * The interface File entity dao.
 *
 * @author Dax
 * @since 22 :37  2018/5/22
 */
public interface FileEntityDao {

    /**
     * Save.
     *
     * @param fileEntity the file entity
     */
    void save(FileEntity fileEntity);

    /**
     * Save batch.
     *
     * @param fileEntities the file entities
     */
    void  saveBatch(Collection<FileEntity> fileEntities);

    /**
     * Find one file entity.
     *
     * @param name the name
     * @return the file entity
     */
    FileEntity findOne(String name);


}
